//
//  NSError+PP.m
//  pickpic
//
//  Created by Jinxiao on 9/16/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "NSError+PP.h"

@implementation NSError (PP)

- (NSString *)networkPrompt {
    return [self.domain isEqualToString:@"com.pickpic.error"] ? ([self.localizedDescription isKindOfClass:[NSString class]] ? self.localizedDescription : @"服务器开小差了，稍后再试吧"): @"当前网络不可用，请检查您的网络设置";
}

@end
